/*
 * Style.h
 *
 *  Created on: 2012-9-20
 *      Author: yangentao@gmail.com
 */

#ifndef STYLE_H_
#define STYLE_H_
#include "../dep.h"

class Style {
public:
	Color textColor;
	Color backColor;
public:
	Style();
	virtual ~Style();
	inline void setTextColor(Color color){
		textColor = color;
	}
};

class StyleManager{

public:
	void setStyle(int from, int length, Style style);
	Style getStyle(int pos);


public:
	void onTextReplaced(int from, int removLength, int insertLength);
};

#endif /* STYLE_H_ */
